package priv.mill.db;

import java.sql.SQLException;
import java.util.Map;

public interface SqlWorker {

	static SqlWorker getInstance(String tableName) {
		return new MysqlWorker(tableName);
	}

	String findById() throws SQLException;

	String findByPage();

	int insert(Map<String, String> describe) throws SQLException, Exception;

	Integer update(Map<String, String> describe) throws SQLException, Exception;

	int getPrimary(Map<String, String> describe);

	String delete();

}
